package com.situ.mall.common.mapper;

import com.situ.mall.common.entity.Relation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author JavaWizard
 * @since 2024-02-22
 */
public interface RelationMapper extends BaseMapper<Relation> {

    // 查这个用户添加的所有就诊人
    @Select("select * from relation where member_id = #{memberId}")
    List<Relation> selectByMemberId(Integer memberId);
}
